package com.exam.online.system.dao;

import com.exam.online.system.entity.CoursePaper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CoursePaperDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(CoursePaper record);

    int insertSelective(CoursePaper record);

    CoursePaper selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CoursePaper record);

    int updateByPrimaryKey(CoursePaper record);

    @Select("select * from `t_course_paper` where course_id = #{e}")
    List<CoursePaper> selectByCourseId(@Param("e") Integer e);
}